package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter@Getter
public class ChangeClientLog {

    //移交客户时间
    //传出转成json格式
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT-8")
    //数据传入使用日期类型
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date changeDate;

    //操作人
    private Employee handleUser;

    //被移交客户
    private Client clientName;

    //移交前负责人
    private Employee oldUser;

    //移交后负责人
    private Employee newUser;

    //移交原因
    private String reason;
}